import request from '@/axios/axios'

// 日志列表
export function getList(query) {
  return request({
    url: '/device/v1/logs/upload/page',
    method: 'get',
    params: query
  })
}

// 启动收集
export function startCollect(params) {
  return request({
    url: '/device/v1/logs/upload/start-collecting-log',
    method: 'post',
    data: params
  })
}

// 停止收集
export function stopCollect(params) {
  return request({
    url: 'device/v1/logs/upload/stop-collecting-log',
    method: 'post',
    data: params
  })
}

// 设备列表
export function deviceList(params) {
  return request({
    url: '/device/v1/get-all-device-list',
    method: 'post',
    data: params
  })
}

// 设备日志详情
export function deviceLog(params) {
  return request({
    url: '/log/v1/device/log',
    method: 'post',
    data: params
  })
}

// 日志类型
export function getLogTypeList() {
  return request({
    url: '/log/v1/device/get-log-type-list',
    method: 'post'
  })
}
